package com.woniuxy.service.impl;

import com.woniuxy.dao.LeftMenuTreeDao;
import com.woniuxy.entity.Menu;
import com.woniuxy.service.LeftMenuTreeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class LeftMenuTreeServiceImpl implements LeftMenuTreeService {
    @Autowired
    LeftMenuTreeDao leftMenuTreeDao;
    @Override
    public List<Menu> findAll() {
        return leftMenuTreeDao.findAll();
    }

    @Override
    public int updataFid(int fid,int id) {
        leftMenuTreeDao.updataFid(fid,id);
        return 0;
    }
}
